import Vue from 'vue'
import App from './App.vue'
import router from './router.js'
import store from './store'
import Panel from '@/components/Panel'
import countTo from "vue-count-to";
import vuescroll from 'vuescroll/dist/vuescroll-native'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)
// import socket from '@/lib/socket'
import 'vuescroll/dist/vuescroll.css'
import '@/assets/fonts/icon.css'
//插件
import { plugins } from '@/plugins'
import animate from 'animate.css'
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)
Vue.use(animate)
plugins.forEach((item) => {
  Vue.use(item.default)
})

Vue.config.productionTip = false

// Vue.prototype.$socket = socket
Vue.component('Panel', Panel)
Vue.component('countTo', countTo)
Vue.use(vuescroll)

new Vue({
    render: h => h(App),
    router,
    store
}).$mount('#app')
